package wei.xinya.core.edu;

public class Method {
	public static void main(String[] args) {
		int i = 2;
		int j = 5;
		int m = max(i, j);
		System.out.println("最大值为：" + m);
	}
	
	public static int max (int num1, int num2) {
		int max;
		if(num1 > num2) {
			max = num1;
		}else {
			max = num2;
		}
		return max;
	}
}